/**
 * Created by WT-SUN on 2017/4/26.
 */
$(function () {
    var isDiagnosis=[{id:'0',text:'是'},{id:'1',text:'否'}];
    $("#isDiagnosis").combobox({
        data: isDiagnosis,
        valueField: 'id',
        textField: 'text',
        editable: false,
        panelHeight: '200',
        selectOnNavigation:true,
        onSelect:function (r) {
            if (r.id=='0'){
                $("#zdFile").show();
            }else {
                $("#zdFile").hide();
            }
        }
    });
    if (isDiagnosisDIv=='0'){
        $("#zdFile").show();
    }else {
        $("#zdFile").hide();
    }
    pageComData('isAppraisal',isDiagnosis);
    $("#danwei").textbox('setValue', danweiName).textbox('setText', danweiName);
});

function pageComData(id,data) {
    var pageId='#'+id;
    $(pageId).combobox({
        data: data,
        valueField: 'id',
        textField: 'text',
        editable: false,
        panelHeight: '200',
        selectOnNavigation:true,
    });
}


